class Permission < ActiveRecord::Base
  has_many :role_permissions
  has_many :roles, :through => :roles_permissions
  has_many :user_permissions
  has_many :users, :through => :user_permissions

  validates_presence_of :action, :object_type
end
